<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>037-generator函数for-of遍历.html</title>
</head>
<body>
	
</body>
<script type="text/javascript">
	function * gen(){
		yield 1
		yield 2
		yield 3
		yield 4
		yield 5
	}
	const g = gen()
	console.log(g.next(url))
</script>
</html>